<?php

namespace app\shop\model\document;

use think\Model;
use app\shop\model\user\User;
use think\model\concern\SoftDelete;
/**
 * 应用模型
 */
class Contract extends Model
{
    use SoftDelete;
    protected $autoWriteTimestamp = true;

    protected $json = ['field'];

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'user_id');
    }
}
